<script>
import Config from '@/settings'
export default {
  name: 'AuthLogin',
  created() {
    const width = document.body.clientWidth
    const service = this.$route.query.service
    if (service === undefined || service === null || service === '') {
      window.location.href = '/'
    } else if (width >= 1024) {
      // pc 端
      window.location.href = Config.casServer + Config.casServerLogin + '?service=' + service
    } else { // 移动端
      window.location.href = '/auth/api/web/cas?type=' + Config.appType
    }
  }
}
</script>

<template>
  <div />
</template>

<style scoped>

</style>
